package com.lianwei.hospital.Service;

import com.lianwei.hospital.module.entity.DoctorInfo;
import com.lianwei.hospital.module.entity.UserInfo;
import com.lianwei.hospital.module.vo.DoctorVO;
import com.lianwei.hospital.module.vo.UserVO;
import com.lianwei.hospital.utils.PageUtil;

import java.util.List;

public interface UserService {
    UserInfo selectByPrimaryKey(String id) throws Exception;
    boolean insertUser(UserInfo userInfo) throws Exception;
    List<UserInfo> selectAll() throws Exception;
    boolean deleteById(String id) throws Exception;
    boolean updateById(UserInfo userInfo) throws Exception;
    /**
     * 按条件分页查询
     * @param query
     * @return
     * @throws Exception
     */
    PageUtil<UserInfo> findPage(UserVO query) throws Exception;
    UserInfo login(String id, String password) throws Exception;
}
